

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Create Assignments [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, BPEL,BPEL Create Assignments,BPEL Assignments, Create,Assignments,Assignments BPEL, Create,Create,Create BPEL Assignments">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Create Assignments</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="model_pool.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="generate_bpel.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">A BPMN </span><span class="f_BodyText" style="font-style: italic;">Assignment</span><span class="f_BodyText"> element enables data to be copied between messages, and new data to be inserted, using expressions within a BPEL Process. A BPMN Assignment element maps to a BPEL </span><span class="f_BodyText" style="font-style: italic;">assign</span><span class="f_BodyText"> activity and copies the specified value from the source to the target.</span></p>
<p class="p_BodyText"><span class="f_BodyText">In Enterprise Architect, Assignment elements should be created in the </span><span class="f_BodyText" style="font-style: italic;">Assignments</span><span class="f_BodyText"> package in </span><span class="f_BodyText" style="font-style: italic;"><a href="create_a_bpel_model.htm">SupportingElements</a></span><span class="f_BodyText">. If they are created elsewhere, they cannot be enacted correctly.</span></p>
<p class="p_BodyText"><span class="f_BodyText">To create a new Assignment in your model, follow the steps below:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">Navigate to and open (or create, if necessary) the BPEL diagram under the </span><span class="f_NumberedList" style="font-style: italic;">Assignments</span><span class="f_NumberedList"> package.</span></li>
<li value=2><span class="f_NumberedList">Open the </span><span class="f_UIControl">BPMN 1.1 Types</span><span class="f_NumberedList"> page of the Enterprise Architect UML </span><span class="f_UIControl">Toolbox</span><span class="f_NumberedList"> (</span><span class="f_MenuKeyField">More tools | BPMN 1.1</span><span class="f_NumberedList">).</span></li>
<li value=3><span class="f_NumberedList">Drag an </span><span class="f_NumberedList" style="font-style: italic;">Assignment</span><span class="f_NumberedList"> element from the </span><span class="f_UIControl">Toolbox</span><span class="f_NumberedList"> onto the diagram. The BPEL</span><span class="f_UIControl"> Properties</span><span class="f_NumberedList"> dialog displays.</span><br>
<span class="f_NumberedList">&nbsp;</span><br>
<img src="assignment_dlg.png" width="297" height="368" border="0" alt="Assignment_Dlg"></li>
</ol>
<p class="p_NumberedList"><span class="f_NumberedList">&nbsp;</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=4><span class="f_NumberedList">In the </span><span class="f_MenuKeyField">Name</span><span class="f_NumberedList"> field, type a name for the Assignment.</span></li>
<li value=5><span class="f_NumberedList">In the </span><span class="f_MenuKeyField">Assign Time</span><span class="f_NumberedList"> field, click on the drop-down arrow and select either </span><span class="f_MenuKeyField">Start</span><span class="f_NumberedList"> or </span><span class="f_MenuKeyField">End</span><span class="f_NumberedList">. This determines whether the assignment occurs at the start or end of an Activity.</span></li>
</ol>
<p class="p_NumberedList"><span class="f_NumberedList">In the </span><span class="f_UIControl">Copy From</span><span class="f_NumberedList"> panel:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=6><span class="f_NumberedList">In the </span><span class="f_MenuKeyField">Type</span><span class="f_NumberedList"> field, click on the drop-down arrow and select either </span><span class="f_MenuKeyField">Literal</span><span class="f_NumberedList">, </span><span class="f_MenuKeyField">Expression</span><span class="f_NumberedList"> or </span><span class="f_MenuKeyField">Message</span><span class="f_NumberedList">.</span></li>
<li value=7><span class="f_NumberedList">If you select </span><span class="f_MenuKeyField">Literal</span><span class="f_NumberedList">, the </span><span class="f_MenuKeyField">Literal</span><span class="f_NumberedList"> field is enabled and the </span><span class="f_MenuKeyField">Message</span><span class="f_NumberedList"> and </span><span class="f_MenuKeyField">Part</span><span class="f_NumberedList"> fields are disabled. Type a value in the </span><span class="f_MenuKeyField">Literal</span><span class="f_NumberedList"> field.</span></li>
<li value=8><span class="f_NumberedList">If you select </span><span class="f_MenuKeyField">Expression</span><span class="f_NumberedList"> or </span><span class="f_MenuKeyField">Message</span><span class="f_NumberedList">, the </span><span class="f_MenuKeyField">Literal</span><span class="f_NumberedList"> field is disabled and the </span><span class="f_MenuKeyField">Message</span><span class="f_NumberedList"> and </span><span class="f_MenuKeyField">Part</span><span class="f_NumberedList"> fields are enabled.</span></li>
</ol>
<div style="text-align: left; text-indent: -21px; padding: 0px 0px 0px 0px; margin: 5px 0px 0px 48px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">If you select </span><span class="f_MenuKeyField">Expression</span><span class="f_TiporNoteText">, Enterprise Architect uses the </span><span class="f_TiporNoteText" style="font-style: italic;">getVariableData Xpath 1.0</span><span class="f_TiporNoteText"> function to create the expression from the selected </span><span class="f_MenuKeyField">Message</span><span class="f_TiporNoteText"> and </span><span class="f_MenuKeyField">Part</span><span class="f_TiporNoteText">.</span></p>
</td>
</tr>
</table>
</div>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=9><span class="f_NumberedList">To the right of the </span><span class="f_MenuKeyField">Message</span><span class="f_NumberedList"> field, click on the </span><span class="f_MenuKeyField">[ ... ]</span><span class="f_NumberedList"> button and select a Message created under the </span><span class="f_NumberedList" style="font-style: italic;"><a href="create_a_bpel_model.htm">SupportingElements</a></span><span class="f_NumberedList"> package.</span></li>
</ol>
<div style="text-align: left; text-indent: -21px; padding: 0px 0px 0px 0px; margin: 5px 0px 0px 48px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">Messages are created when you create a <a href="bpel_web_service.htm">Web Service</a>.</span></p>
</td>
</tr>
</table>
</div>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=10><span class="f_NumberedList">(Optional) To the right of the </span><span class="f_MenuKeyField">Part</span><span class="f_NumberedList"> field, click on the </span><span class="f_MenuKeyField">[ ... ] </span><span class="f_NumberedList">button and select a Message Property.</span></li>
</ol>
<p class="p_NumberedList"><span class="f_NumberedList">In the </span><span class="f_UIControl">Copy To</span><span class="f_NumberedList"> panel:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=11><span class="f_NumberedList">To the right of the </span><span class="f_MenuKeyField">Message</span><span class="f_NumberedList"> field, click on the </span><span class="f_MenuKeyField">[ ... ]</span><span class="f_NumberedList"> button and select a Message created under the </span><span class="f_NumberedList" style="font-style: italic;">SupportingElements</span><span class="f_NumberedList"> package.</span></li>
<li value=12><span class="f_NumberedList">To the right of the </span><span class="f_MenuKeyField">Part</span><span class="f_NumberedList"> field, click on the </span><span class="f_MenuKeyField">[ ... ]</span><span class="f_NumberedList"> button and select a Message Property. This field is mandatory if you have entered a value in the </span><span class="f_MenuKeyField">Part</span><span class="f_NumberedList"> field in the </span><span class="f_UIControl">Copy From</span><span class="f_NumberedList"> panel.</span></li>
<li value=13><span class="f_NumberedList">Click on the </span><span class="f_MenuKeyField">OK</span><span class="f_NumberedList"> button to close the dialog.</span></li>
</ol>
<p class="p_BodyText"><span class="f_BodyText">&nbsp;</span></p>
<p class="p_BodyText"><span class="f_BodyText">To return to the BPEL </span><span class="f_UIControl">Properties</span><span class="f_BodyText"> dialog for subsequent editing:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Double-click on the element in the diagram or </span><span class="f_UIControl">Project Browser</span><span class="f_Bulletlist1"> (the </span><span class="f_MenuKeyField"><a href="generalsettings.htm">Shows Properties</a></span><span class="f_Bulletlist1"> option must be selected in the </span><span class="f_UIControl">Double click on browser</span><span class="f_Bulletlist1"> panel of the </span><span class="f_UIControl">Options</span><span class="f_Bulletlist1"> dialog) or</span></li>
<li><span class="f_Bulletlist1">Right-click on the element in the diagram or </span><span class="f_UIControl">Project Browser</span><span class="f_Bulletlist1"> and select the </span><span class="f_MenuKeyField">BPEL | BPEL Properties</span><span class="f_Bulletlist1"> menu option.</span></li>
</ul>
<p class="p_SeeAlso"><span class="f_SeeAlso">See Also</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1"><a href="model_a_bpel_process.htm">Model a BPEL Process</a></span></li>
<li><span class="f_Bulletlist1"><a href="generate_bpel.htm">Generate BPEL</a></span></li>
<li><span class="f_Bulletlist1"><a href="bpel_model_validation.htm">BPEL Model Validation</a></span></li>
</ul>




            </div>
          </div>
        </div>



</div>


</body>
</html>
